const url = require('url')

console.log(url.parse("http://www.baidu.com:4000/a/b/c?us=conner&ps=12345#abc"))
console.log(url.format(url.parse("http://www.baidu.com:4000/a/b/c?us=conner&ps=12345#abc")))